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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Error using taIVMultibinBinToBinTransfer

(0) ShareShare
ReportReport
Posted on by 50

Trying to process bin transfers using the taIVMultibinBinToBinTransfer stored procedure in GP 2013.  The move occurs however the stored procedure errors out and the Bin Transfer record is not inserted into the new bin transfer table IV30004.  The error returned from the taIVMultibinBinToBinTransfer SP is:

"Msg 547, Level 16, State 0, Procedure taIVMultibinBinToBinTransfer, Line 1

The INSERT statement conflicted with the CHECK constraint "CK__IV30004__Bin_XFe__690EEB90". The conflict occurred in database "ZAHNR", table "dbo.IV30004", column 'Bin_XFer_Date'."

This contraint checks to make sure the record is submitting a date only value, with time set to 00:00:00:000.  I don't understand why they would remove the time value and not have another column for it like they do in other tables.

Note to be taken:  If using taIVMultibinBinToBinTransfer directly, be sure to scrub the I-vBin_XFer_Date parameter to be Date only.

*This post is locked for comments

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

    It's been a long time since you've asked this question but maybe I may help somebody who have the same question.

    CK__IV30004__Bin_XFe looks for formatted date for the Bin_XFer_Date parameter. 
    So you need to pass parameter of datetime where hour , minute,second and milisecond = 0
    Example:

    the stored proc would accept if the datetime string will be like : "2017-09-14 00:00:00.000"
    it won't accept the datetime like this : "2017-09-14 12:51:31.340"

    So If you are using c# , 
    Bin_XFer_Date = DateTime.Today.ToString("yyyy-MM-dd HH:mm:ss.fff") 
    this line should solve your issue.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

#2
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans