Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 47 in program ARWPAA at line 8202

Status
Not open for further replies.

velveteenrabbit

Programmer
May 15, 2006
4
US
We are trying to run period end in AR and receive this error (Error 47 in program ARWPAA at line 8202). The 'Substring reference out of string' error sounds like there is non-existent data somewhere it is trying to reference. Any ideas on what that might be or how I can determine where the data is missing? Thanks in advance.

Error Info as follows:

Error #47: Substring reference out of string
Program: ARWPAA
Line: 8202

General Information
File: providex.ddf providex.ddf
Channel: -547
Key:

Last Channel Opened: 14
Last Channel Accessed: 14

Application: Accounts Receivable (4.00)
L/M Level: 4.00
Bytes Free: 30,500,654

Program Stack
09020C:\Program Files\Best\MAS 200\Version4\MAS90\AR\ARWPAA
02010C:\Program Files\Best\MAS 200\Version4\MAS90\soa\SWERRM
07072C:\Program Files\Best\MAS 200\Version4\MAS90\home\lib\_winproc
08520C:\Program Files\Best\MAS 200\Version4\MAS90\soa\swerrm

Open Files
Chan File
1 AR1 A/R Customer Master File
2 AR4 A/R Open Invoice File
3 AR5 A/R Alternate Invoice Sort File
4 AR6 A/R Transaction/Payment History File
5 ARD A/R Salesperson Master File
6 ARX A/R Analysis Data File
7 ARL A/R Repetitive Invoice Header File
10 ARN A/R Invoice History Header File
11 ARO A/R Invoice History Detail File
13 ARP A/R Customer Memo File
14 AR9 A/R Cash Receipts Data Entry Header File
19 AR_08 A/R Invoice History Extended Item Descr
20 AR_19 A/R Invoice History Tracking File
21 AR_30 Package Tracking By Item History File
32744 IM_04 I/M Alias Item Number File
32745 AR_15 Customer/Ship-To Tax Exemptions File
32746 ARV A/R Sales Tax Detail File
32747 AR_17 A/R Invoice History Tax Summary File
32748 AR_16 A/R Open Invoice Tax Summary File
32749 SY_RoleSecurity.M4T
32750 SY_UserSecurity.M4T
32751 SY_Task.M4T
32752 SY_User.M4T
32753 SY_RoleSecurity.M4T
32754 SY_UserSecurity.M4T
32755 SY_Task.M4T
32756 SY_User.M4T
32757 SY_RoleSecurity.M4T
32758 SY_UserSecurity.M4T
32759 SY_RoleSecurity.M4T
32760 SY_UserSecurity.M4T
32761 SY_Task.M4T
32762 SY_User.M4T
32763 SY_Task.M4T
32764 SY_User.M4T
32765 SY0CTL System Control File
32766 providex.dde
32767 providex.ddf

Public Programs
Program Bytes
SWPLIB 22,965
SWPLIB 22,965
SWGPIH 9,776
SYHEAD 21,968
SYREPT 13,853
SWTEXT 2,265
SY_SESSION.PVC 32,383
SY_SECURITY.PVC 10,015
SY_FILE.PVC 10,265
SY_OPENOBJECT.PVC 1,721
SY_CONSTANT.PVC 11,381
SY_UI.PVC 17,952
SY_CONSTANT.PVC 11,381
SY_UI.PVC 17,952
SYCOMP 7,754
_MSGLIB 564
_WINPROC.SAD 9,381
SWPLIB 22,965
_WINPROC.TBL 14,069
_WINPROC 14,656
_WINPROC.DSP 30,638
SY_PERSONALIZE.M4P 5,307
_WINPROC.CUS 8,696
CM_CUSTOMIZER_SVC.PV 13,776
CM_NOMADSLINK 2,512
SWERRM 18,013
_INFO 13,988
SWCLIK 2,514
SWERRM 18,013
SYERRM 13,387
SWSQL2 26,175
GLWPFA.PVC 6,833
SY_COMMON.PVC 3,488
SY_KEYDEFINITION.PVC 749
SY_COLLECTION.PVC 1,152
SY_SERVICE.PVC 22,450
GL_FISCALYEAR_SVC.PV 3,819
COLINFO.PVC 9,141
DATABASE.PVC 20,440
IDXINFO.PVC 6,897
GLWPFA 5,715
GLWURO 2,902
SY_REGISTRATION.PVC 14,451
SY_REGISTRATION.PVC 14,451
ARWPAA 18,727
GLWUVM 1,530
SY_LOCALEINFO.PVC 15,626
SYZDLL 19,916
WINAPI.PVC 24,403
PVXDB.PVC 11,977
SY_SESSION.PVC 32,383
SY_CONSTANT.PVC 11,381
SYCOMP 7,754
SY_STARTUPLEGACY.M4P 4,469
APSSRV.PVC 6,577

Global Flags
%sys_ufid = 53
%sys_session = 1
%sys_original_fid$ =
%system_32 = 1
%sys_windows_version = 500
%sys_yr2000_default = 30
%sys_system_option$ = YYNN
%sys_winprt_default$ = *WINPRT*
 
Make sure there are no cash receipts in progress.
Rebuild the keys for AR1
Rebuild the sort files.

You might need to re-init the cash receipts files and then rebuild the sorts.

Also if your maintenance is up to date then you can research this on the Sage web page in their knowledge base.
 
Thanks for the response. I should have mentioned what I have already done, which includes:
Checked all transaction entries, all files are empty (so, there are no cash receipts in progress).
Reinitialized the AR9 & ARA files & rebuilt the keys & sorts for all of AR.
Also, I did search the knowledgebase on the Sage website, but didn't find anything particularly useful.
Thanks, again.
 
In that case you should contact your reseller to have them contact Sage Tech support and find out exactly what is happening at line 8202.
 
Okay...was hoping there was a way to determine what information it was trying to reference without contacting tech support.
Thanks for the help.
 
I know a lot about MAS but sometimes I have to call tech support to find out what is happening at certain lines.
 
Understood, thanks....and I will post their reply as soon as I speak to tech support, in case anyone else has the same issue.
Thanks, again.
 
try this: - first, back up.
1. Open Library Master / Repair / Data File Display and Maintenance.
2. Click 'OK' through the warning message.
3. Enter AR4xxx in the File Name field (xxx=company code) and press 'Enter'
4. Click on the "Key Scan" button
5. The first record in this file will be blank or all periods. Select this record.
6. Click on the "Delete" button. and answer Yes to "Delete the current record?".
7. Exit Data File Display and Maintenance.
8. Rebuild Application Sort Files for Accounts Receivable
9. Run the A/R Period End Processing again.



 
I would like to mention, this error is not limited to AR. I am currently experiencing the same error "Error 47", in the 'Custom Financial Reporting' module. My error is listed below so that if anyone has any advise, please, please post:

ERROR INFORMATION LISTING
Application Date: 06/15/2006 User: 006 / raven
System Date: 06/15/2006 / 8:29 am Page: 1
Error #47: Substring reference out of string
Program: GLWUEA
Line: 970
General Information
File: providex.ddf providex.ddf
Channel: -550
Key: 6100000
Last Channel Opened: 17
Last Channel Accessed: 1
Application: General Ledger (4.05)
L/M Level: 4.05
Bytes Free: 29,911,014
Serial Num: 0000-001-0000000
Program Stack
00050M:\Version4\MAS90\GL\GLWREA
07072M:\Version4\MAS90\Home\lib\_winproc
09020M:\Version4\MAS90\gl\GLWUEA
02010M:\Version4\MAS90\soa\SWERRM
07072M:\Version4\MAS90\Home\lib\_winproc
08520M:\Version4\MAS90\soa\swerrm
Open Files
Chan File
0 raven(Terminal ID)
1 GL9 G/L Custom F/S Line Detail File
2 GL9 G/L Custom F/S Line Detail File
3 GLD G/L Custom F/S Linkage Line File
4 GLQ Custom Report Group Master File
5 GLO Custom F/S Header And Footnote File
6 SY0CTL System Control File
10 GLF G/L Custom F/S Acct G/L Detail File
11 GL9 G/L Custom F/S Line Detail File
15 GLP Custom Financials Report Link Sort File
17 GL12_CustomRptDeptLinkage.m4t
32750 SY_Company.M4T
32751 GL_FiscalYear.M4T
32752 GL_PeriodPostingHistory.M4T
32753 GL_PeriodBudgetDetail.M4T
32754 GL_Account.LCK
32755 GL_Account.M4T
32756 SY_RoleSecurity.M4T
32757 SY_UserSecurity.M4T
32758 SY_Task.M4T
32759 SY_User.M4T
32760 SY_Module.M4T
32761 SY_RoleSecurity.M4T
32762 SY_UserSecurity.M4T
32763 SY_Task.M4T
32764 SY_User.M4T
32765 SY0CTL System Control File
32766 providex.dde
32767 providex.ddf

ERROR INFORMATION LISTING
Application Date: 06/15/2006 User: 006 / raven
System Date: 06/15/2006 / 8:29 am Page: 2
Public Programs
Program Bytes
SWPLIB 22,965
SWPLIB 22,965
SWGPIH 9,776
SYHEAD 22,032
SY_FILE.PVC 10,265
SY_SESSION.PVC 32,172
SY_CONSTANT.PVC 11,722
SYREPT 13,853
SYMINI 5,427
SWTEXT 2,265
SY_OPENOBJECT.PVC 1,721
SY_SECURITY.PVC 10,015
SY_UI.PVC 17,938
SYCOMP 7,949
_MSGLIB 564
_WINPROC.SAD 9,381
_WINAPI 17,744
_INFO 13,988
SWPLIB 22,965
_WINPROC.TBL 14,069
SWPSET 13,600
_WINPROC 14,656
_WINPROC.DSP 30,638
SY_PERSONALIZE.M4P 5,307
_WINPROC.CUS 8,696
CM_NOMADSLINK 2,544
_WINDX.UTL 6,075
SWPSET 13,600
SYPRNT 23,325
CM_CUSTOMIZER_SVC.PV 14,170
GL_ACCOUNTEIO 1,674
SWERRM 18,013
SWCLIK 2,458
SWERRM 18,013
SYERRM 13,387
SY_LOCALEINFO.PVC 15,626
SWPROG 863
GLWUEA 26,712
SYZDLL 20,262
SY_PRM 16,448
SWPROM 6,505
GLWREA 16,677
_WINPROC.XEQ 94
SWACCT 3,060
SWDATE 5,111
GLWPFA.PVC 6,833
SY_COMMON.PVC 3,488
SY_KEYDEFINITION.PVC 749
SY_COLLECTION.PVC 1,152
COLINFO.PVC 9,141
DATABASE.PVC 20,440
IDXINFO.PVC 6,897
SY_REGISTRATION.PVC 14,479
GLWREA 16,677
WINAPI.PVC 24,403

ERROR INFORMATION LISTING
Application Date: 06/15/2006 User: 006 / raven
System Date: 06/15/2006 / 8:29 am Page: 3
PVXDB.PVC 11,977
SY_SESSION.PVC 32,172
SY_CONSTANT.PVC 11,722
Global Flags
%sys_ufid = 9
%sys_session = 1
%sys_original_fid$ =
%system_32 = 1
%sys_windows_version = 501
%sys_yr2000_default = 30
%sys_system_option$ = NNNN
%sys_winprt_default$ = *WINPRT*;HP LaserJet 1022

thanks in advance
raven
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top