#hanh-le_unexpected

1 messages · Page 1 of 1 (latest)

knotty summitBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1345962709753139200

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sudden owl
#

What editor do you use generate / update the csv file? Is it excel, apple number… etc?

#

If you’re using any of the editor above, could you try raw text editor to generate the content? It sounds like the editor might be populating the decimal (.00 behind the integer) even though it is set to integer

rich garden
#

I used VSC to edit the sample csv file

sudden owl
#

Could you remove .00 behind?

#

Just 31 instead of 31.00

rich garden
#

It did not show any .00 in VSC though, just tried with BBEdit on Mac and also the same error

#

Do you need the file to check? I can give you that, it's in test anyway

sudden owl
#

Sure! It'll be helpful to share the sample file, so that I can test it out

rich garden
sudden owl
#

if i put the line break after the second line, the decimal error will go away

rich garden
#

I still got the same issue with the file you sent above

sudden owl
#

This is strange. Could you manually put a line break in your original file and try it out again?

knotty summitBOT
rich garden
slate hedge
#

Hi there, did you use this exact file? The error message mentioned about 31 but this file is 26

rich garden
#

Yes I used the exact file, the number is different because I got it from a sample downloaded previously. But still, I only downloaded sample file from Dashboard, add a customer id to it (tried with VSC, BBEdit) then import, also used the file river sent me above

slate hedge
#

Can you use a simpler eidtor like the TextEditor on Mac, or vim if you use terminal?

rich garden
#

both not work

slate hedge
#

That that's weird. Can you screenshot the error?

rich garden
#

It's the same error with the decimal payload I sent above. In case you can check, here is the event: evt_1QySm0CGh2E5KNbVorioImdH

#

I tried this with Mac TextEditor

slate hedge
#

Sure let met try in a couple of minutes

rich garden
#

Hi! How's everything?

slate hedge
#

Umm I tried and can rerproduce what you are seeing. Trying to get around it too

#

Thanks for your patience and report

knotty summitBOT
marsh bramble
#

hi! I'm taking over this thread.

rich garden
#

Thanks, same issue as described above, if you need any more info, let me know

marsh bramble
#

Yes, looking into this

#

okay, looks like you found an issue in the Dashboard. However we on Discord don't know much about the Dashboard (we help with API questions).
so I recommend you to directly ask that question to Stripe Support: https://support.stripe.com/contact
Make sure to include all the relevant information (screenshot, video, test file, etc.)

rich garden
#

Okay got it, anyway I have the second question of my reported meter (manually) not showing up in the subscription/invoice
For specifically, I have draft invoices created on 1st March, and need to import the file backdate to 28th Feb so I can include them in that invoice if possible, they were successfully added, but I dont see them anywhere
Any reasons you might know?

marsh bramble
#

can you share more concrete information? Somehting like:

  • For Subscription sub_xxx
  • I added a usage on XX
  • However when I check Invoice in_xxx, I don't see it
marsh bramble
#

sorry for the delay, we are looking into this

fading flint
#

there are 2 usage events that have a timestamp prior to the subscription start date

#

that's why they're not showing in the upcoming invoice

rich garden
#

I dont see them in current (draft invoice) eitheir, any way I can include them?

fading flint
#

you can but you need to change the timestamp to be within the current period

rich garden
#

By changing the timestamp do you mean I call a meter event adjustment?

fading flint
#

no that would only let you cancel the old one

#

you need to create a new usage event but change the timestamp you used the first time

rich garden
#

So those 2 are lost or some thing?

fading flint
#

in a sense yes

rich garden
#

okay, i'll try it

rich garden
#

one question, is there any way I can set an automation/work around for this?
I have product A and product B in the subscription
I dont want to bill any invoices if the Product B quantity is 0, no matter how many A it has?

fading flint
#

let me wrap my head around this for a second

#

I don't think that's possible

#

is this related to usage?

#

would you mind describing your use case so I could think about what options you have?

knotty summitBOT
rich garden
#

Okay, so I have subscription that includes product A and product B

  • Product A is like the number of user
  • Product B is like the item that they use in the system (there are 2 type of pricing as well, 1 is monthly recurring and 1 is usage-based)
    I want to apply a logic somewhere that allow me to NOT generate invoice/or automatically void invoices that have 0 quantity of product B in it, since it's not right if the users are there but they dont use anything
    So, If product B is 0 -> no invoice/or something equivalent (no matter if A exists),
    Otherwise, bill as normal
somber wigeon
#

I think you should update/change your pricing model

#

You should modelize the products and prices in a way that illustrate the number of items used per user

#

You can track the number of users in metadata or your database

rich garden
#

I see, will take a look at that. Thank all guys!