Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Sales unposted Invoice print error

(0) ShareShare
ReportReport
Posted on by 385

Dear Community,

I am facing Runtime error after upgrading to GP2016 R2 during SOP invoice printing can anyone help me to resolve this error:

SOP-error.PNG

Thanks

Categories:
  • Jozy Profile Picture
    Jozy 385 on at
    RE: Sales unposted Invoice print error

    Richard I knew that you can find the solution. Thank you so much again..:)

  • Verified answer
    Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Sales unposted Invoice print error

    and there was much rejoicing!!! I knew that had to be something unique about this report in this company.

  • Jozy Profile Picture
    Jozy 385 on at
    RE: Sales unposted Invoice print error

    Richard, Thank you so much for your help and effort..:) I can now print the report finally.

  • Verified answer
    Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Sales unposted Invoice print error

    You have a custom connection string in your VBA code for this report. Grant the proper rights to user 'rpt' and this report will work in your GC company. See what rights this user has in other companies and compare.

    Public Function ConnectionString() As ADODB.Connection

    If Connection Is Nothing Then

       Set Connection = New ADODB.Connection

    End If

       With Connection

           .Provider = "SQLOLEDB"

           .Properties("Data Source").Value = "ERPSERVER\SQL2014"

           .Properties("Initial Catalog").Value = UserInfoGet.IntercompanyID

           .Properties("User ID").Value = "rpt"

           .Properties("Password").Value = "Wel$$$"

           .Open

       End With

    Set ConnectionString = Connection

    End Function

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Sales unposted Invoice print error

    I have the file and will take a look at it.

  • Jozy Profile Picture
    Jozy 385 on at
    RE: Sales unposted Invoice print error

    Richard I do not send you file on email. I send you file on community private message or please send me your email so I can send you email too.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Sales unposted Invoice print error

    I do not see the email. You can attach the package file to the email.

  • Jozy Profile Picture
    Jozy 385 on at
    RE: Sales unposted Invoice print error

    I have send you file in private message as I am unable to send file from here.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Sales unposted Invoice print error

    I am officially out of ideas on this one. Hopefully someone from Microsoft can chime in here. If logging in as 'sa' gives the same results then it is not a security issue. You can run this report on all other companies with no issues so there is nothing wrong with the report. Using the primary version of the reports works. It is only when you make modifications. What modifications are you making? Can you attach a package file of your SOP Blank Invoice form?

  • Jozy Profile Picture
    Jozy 385 on at
    RE: Sales unposted Invoice print error

    Richard, I can see all rights are given to SOP10105. But unable to print invoice..:(

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans