web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Process Manager - Programming Bulletproof Error 10262

(0) ShareShare
ReportReport
Posted on by

Hi

I got problems when I print an invoice.

The Process Manager shows the next error:

Invalid cursor value passed to sinsert1().  Please make sure cursor value is greater than 0.  Also verify that this cursor has been passed to sql()


The special feature of this invoice is that on the Confirm Shipment Window, I added a new line to SOShipLine. This line is taken from another shipment, and in the process that shipment is cancelled, and the change in the line is the InvtID, that is changed for another.

This process is not new but suddenly started to give that error and I checked the shipment with older shipments and there isn't a difference between them.

Any possible solution?

Thanks,

Jonathan

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Jonathan, you did not say but I am assuming that you added some logic to the screen via Customization Manager and that logic is using a cursor already defined in the standard code.  However, I suspect that the standard code is calling SQLFree at some point which clears that cursor value and, hence, the error you are getting.  I suggest that you create your own cursor for your code and not try to using an existing cursor.  To avoid any conflict with the cursor name, start yours with the letter x.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans