cancel
Showing results for 
Search instead for 
Did you mean: 

How to create UDT and UDFs in the single scenario package using SAP B1IF

former_member416544
Participant

Hi Experts,

In my scenario package, I have created two separate payloads atoms to create a User-defined table(UDT) and User-defined fields(UDF).

I'm facing issues, while I'm trying to create UDT and UDF's in the single scenario package.

DI Error: (-1120) Ref count for this object is higher then 0-The di call #1 did fail.

Could you please suggest the solution.

youngjoon_kim
Explorer
0 Kudos

I'm having the same problem right now. I'm making 2UDTs(Document and Document Lines) + UDFs. As I searched around this is an issue of releasing objects, but I don't know how to do that in B1if..

Accepted Solutions (0)

Answers (2)

Answers (2)

youngjoon_kim
Explorer
0 Kudos

Better solution:

make a scenario step call for each operation and turn off single transaction and parallel processing.

The previous solution made my queue to block for a while.

youngjoon_kim
Explorer
0 Kudos

I managed to create two UDTs and UDFs.

Try:

1. turn on SAP Business One DI Single Transaction

2. on each call di object atom set stop processing if fails as true

3. handle exceptions as retrial after 1 minute.

My guess is that when point 1 is not turned on then every DI operation is in single transaction, and while you are trying to create UDF you are referring to the UDT which does not exist yet. point 2 and 3 gives sap time to release the objects so that when creating UDF no other operation is referring to the UDT.