Mtltags RRD in kinetic is not getting updated with new table relationships

Hi Folks, I was trying to add few custom fields on Mtltag report from ParLlot table and it seems not working.
I duplicated base RDD and add table PartLot and add a relationship to Mtltag, then duplicate the style and add similar relationship in RDL file as well. unfortunately its not picking any fields from additional tables, Since we are on Cloud I couldn’t add any SQL queries inside the report. even I tried adding JobHead for testing and result is same.

Report

 ="SELECT T1.AsmSeq,T1.TagNum,T1.BCAsmSeq,T1.BCBinNum,T1.BCJobNum,T1.BCLotNum,T1.BCOprSeq,T1.BCPartNum,T1.BCWhseCode,T1.BinNum,T1.ItemQty,
T1.JobNum,T1.LaborNote,T1.LotNum,T1.NCComment,T1.NonConfTranID,T1.OpCode,T1.OprSeq,T1.PartNum,T1.PartDesc,T1.POLine,T1.PONum,T1.PORel,T1.Reason,
T1.ReasonDesc,T1.ResGrpID,T1.TagFormat,T1.TagTitle,T1.UM,T1.UM_UOMSymbol,T1.VendID,T1.VendName,T1.WhseCode,T1.QtyNum, T1.LegalNumber, T1.JobSeqType, 
T1.Revision, T1.BCPCID, T1.PCID, T1.DMRNum, T1.AttributeValueSeq, T1.AttributeSetShortDescription, T1.NumberOfPieces, T2.Project_c, T3.ProjectID 
FROM MtlTags_" + Parameters!TableGuid.Value + " T1
 LEFT OUTER JOIN PartLot_" + Parameters!TableGuid.Value + " T2 ON T1.Company = T2.Company AND T1.PartNum = T2.PartNum AND T1.LotNum = T2.LotNum
LEFT OUTER JOIN JobHead_" + Parameters!TableGuid.Value + " T3 ON T1.Company = T3.Company AND T1.JobNum = T3.JobNum"

I see this T3 alias but do not see table in FROM section defining a Table with said alias.

1 Like

I missed the last line while copying, now updated.
thanks :slightly_smiling_face:

1 Like

I do have a custom MtlTags report style, but it is formatting change only, I have not modified the report data definition. It is possible that this post may shed some light on what is going on and how to accomplish what you are looking to do?

Is the relationship type as Output?

What do you mean you couldn’t add SQL queries inside the report? I am not familiar with how much you can customize reports on Cloud, I assumed you could upload your custom RDL.

What actually is field Project_c in PartLot table? It’s not there by default is it?

it’s a custom field which I have added in partLot table

As in previous comment Michael have mentioned an old post where they are using SQL code as (SELECT ISNULL(DMRNUM,0000) FROM [EPICORTEST].[ERP].[DMRHEAD] (NOLOCK)
WHERE PONUM = CONVERT(INT,T1.PONUM) which is not possible in cloud I believe.

I did notice the same post and was trying if anything have changed after the Kinetic update and since we are on cloud the solution mentioned in the post will not work.

< Putting on my Zero Trust Security hat >
Giving the SSRS service account access to your production database, cloud or not, is really not a good security posture.
< /hat off >

It also leads to hard coded dependency in the report making it a “surprise” when you switch servers. Probably better off figuring out why the RDD isn’t working.

2 Likes

My next step would be to check your PartLot_(GUID) and MtlTag_(GUID) tables and see if there is any data there. As a cloud user, you can switch the output on the RDD from DataBase to XML-Crystal. Do a generate only, then use the System monitor to download the data. If no data is found, then you have RDD issues. If the data is there, it’s an issue with your SSRS report.

1 Like

Thanks mark, I will try generating an xml and verify the results

Yeah, you can’t query the ERP database directly from the report.

If the RDD is modified correctly, it should collect all information into the Reporting database, which are the _GUID you see referenced in the RDL.

So like Mark said, a data issue is an RDD issue, a report layout issue is an RDL issue.