Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Index 1 of Array 'Show Hide Attachments' is out of range in script 'Display Line Item'. Script Terminated.

Posted on by Microsoft Employee

Hey all,

I have been facing this issue in Dynamics GP 2016 R2 (v16.00.0579), while opening a Line Item from the Purchase Order Entry window. Please find the screenshot attached.
"Index 1 of Array 'Show Hide Attachments' is out of range in script 'Display Line Item'. Script Terminated."

PO-Item-error.PNG

From what I understand, there seems to be a duplicate or incorrect field for "Show Hide Attachments" for the Line Item ("DisplayLineItem") that's causing this error. But I can't seem to find any trace or location of this "Show Hide Attachments" if it's a field.

I am not sure if the Document Attachment Setup (Tools > Setup > Company > Document Attachment Setup) has anything to do with this. By default, Attachments were disabled. I even tried allowing attachments in it, but the error message still persists.


I also tracked my GP Tables execution through SQL Tracing for the part where I open my Purchasing Item Detail Entry window, and it passes through the following tables, just before it throws the error message:

GL00100, IV00101, SOP60100, SY03900

Any suggestions or solutions provided will be greatly appreciated, as I've been trying to solve this issue since the past few days.

Thanks!

Regards,
- veggiedude

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans