I'm running into an error when automating the crea...
# suitescript
m
I'm running into an error when automating the creation of Deposit records (not customer deposit) with a map reduce, The suitescript error reads:
Copy code
... "name":"TRANS_UNBALNCD","message":"Transaction is not in balance! 0.0,1682.22", ...
The logs show that the second number is what would have been deposited if there had been no error. I've been looking for documentation on what the first number is in the message, so that I can determine the best way to prevent the error, but I haven't been able to find any yet. If anyone knows where I can find more information I would appreciate the help.
b
sounds gl line related, netsuite was unable to balance the gl lines
so important places to look are the account and amount on the deposit
👍 1
m
I agree. How can I confirm what the first number is, versus the second? What would be the best practice approach to automate deposit entry?
b
same thing for all scripts usually
do whatever you want to do in the ui first to make sure its possible
m
that's the weirdness, it is possible within the UI
b
then do the exact same thing in script
what does the code look like
m
... I'll double check the instances that are throwing errors, but in large part I haven't seen issues with it. The code isn't doing anything too special, it's grouping the cash sales and cash refunds by what should be on the deposit and then applying the lines. I keep getting these weird errors though
thanks for your help by the way