We have a customized version of the POForm. We have added the PartRev table so that the drawing number can be displayed. All works great in PROD. However, the reference to the table is hard-coded; when I move the report to a new location, I get the following error: Invalid object name 'Epicor102.erp.PartRev’
I have done the following:
Created a relationship in the RDD between PODetail and PartRev (the PartRev table was in the RDD, but there was no relationship with any other table)
Created a new copy of the report style and changed the RDD to the RDDNew (the one with the relationship)
Synched the Dataset
Downloaded the .rdl and edited the last bit of POHeader query (in the .rdl)
ON T1.RptLanguageID = T4.RptLanguageID left join Epicor102.erp.PartRev T5 on T5.PartNum = T2.PartNum and T5.RevisionNum = T2.RevisionNum left join Epicor102.erp.PODetail T6 on T6.Company = T2.Company and T6.PONum = T2.PONum and T6.POLine = T2.POLine"
To this (removed the “Epicor102.erp.”):
ON T1.RptLanguageID = T4.RptLanguageID left join PartRev T5 on T5.PartNum = T2.PartNum and T5.RevisionNum = T2.RevisionNum left join PODetail T6 on T6.Company = T2.Company and T6.PONum = T2.PONum and T6.POLine = T2.POLine"
Now the report fails with this error: Invalid object name 'PartRev’
What is the process for incorporating the PartRev table into the POHeader query so that I can move the report between environments?
Thanks in advance!