Dynamic Nav Error on printing report 204

I made some modifications to report 204 and now I am getting this error when I try to print.

The print Preview works fine, and it compiles with no error. If anyonw can explain this error a little more, and how I can resolve it, that we be a great help.

here is the error:


Microsoft Dynamics NAV

V_PROP interaction model has the associated Interaction Model Language.
Allowed no language assigned to the models used to record documents system.

OK

can anyone explain what this code does in report 204. the error is coming from SegManagement.LogDocument

IF LogInteraction THEN BEGIN
CALCFIELDS(“No. of Archived Versions”);
IF “Bill-to Contact No.” <> ‘’ THEN
SegManagement.LogDocument(
1,“No.”,“Doc. No. Occurrence”,
“No. of Archived Versions”,DATABASE::Contact,“Bill-to Contact No.”,
“Salesperson Code”,“Campaign No.”,“Posting Description”,’’)
ELSE
SegManagement.LogDocument(
1,“No.”,“Doc. No. Occurrence”,
“No. of Archived Versions”,DATABASE::Customer,“Bill-to Customer No.”,
“Salesperson Code”,“Campaign No.”,“Posting Description”,’’);

Thanks,

No Código do trigger Sales Header - OnAfterGetRecord() está uma parte que apenas é executada se estiveres a imprimir:

IF NOT CurrReport.PREVIEW THEN BEGIN
IF ArchiveDocument THEN
ArchiveManagement.StoreSalesDocument(“Sales Header”,LogInteraction);

IF LogInteraction THEN BEGIN
CALCFIELDS(“No. of Archived Versions”);
IF “Bill-to Contact No.” <> ‘’ THEN
SegManagement.LogDocument(
1,“No.”,“Doc. No. Occurrence”,
“No. of Archived Versions”,DATABASE::Contact,“Bill-to Contact No.”,
“Salesperson Code”,“Campaign No.”,“Posting Description”,“Opportunity No.”)
ELSE
SegManagement.LogDocument(
1,“No.”,“Doc. No. Occurrence”,
“No. of Archived Versions”,DATABASE::Customer,“Bill-to Customer No.”,
“Salesperson Code”,“Campaign No.”,“Posting Description”,“Opportunity No.”);
END;
END;

por isso só dá erro ao imprimir.

Na função SegManagement.LogDocument tens o seguinte código:

InteractTmplCode := FindInteractTmplCode(DocumentType);
IF InteractTmplCode = ‘’ THEN
EXIT;

InteractTmpl.GET(InteractTmplCode);InteractTmplLanguage.SETRANGE(“Interaction Template Code”,InteractTmplCode);

IF InteractTmplLanguage.FINDFIRST THEN
ERROR(Text003,InteractTmplCode,InteractTmplLanguage.“Language Code”);

Se tiveres uma lingua especificada na tabela “Interaction Tmpl. Language” para este código de interacção vai-te dar este erro…