web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

The data cannot be shown because it is not valid

(0) ShareShare
ReportReport
Posted on by

Hello Team,

In D365 Business Central, When we add Notes through Code system add the notes with Text - "The data cannot be shown because it is not valid"

Please see the attached snapshot.

CustomerList.png 

Can anyone has idea about this ?

Thank you

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    How have you created this note record?

  • Community Member Profile Picture
    on at

    I have tried below two solutions to create the Notes through code but for both option system is creating note as per above.

    First

    ItemBigNotes_lTxt.AddText(NotesFunParaVar, 1);

    RecordLinkFunParaVar.Note.CreateOutStream(NoteOutStream, TextEncoding::UTF8);

    ItemBigNotes_lTxt.Write(NoteOutStream);

    Second

    CLEAR(RecordLinkFunParaVar.Note);

    IF NotesFunParaVar = '' THEN

     EXIT;

    TempBlob.Blob := RecordLinkFunParaVar.Note;

    TempBlob.WriteAsText(NotesFunParaVar, TEXTENCODING::UTF8);

    RecordLinkFunParaVar.Note := TempBlob.Blob;

  • Community Member Profile Picture
    on at

    Hi 

    I have the same problem. I try to add the note with below code: 

    if not RecordLink.get(LinkID) then begin
    	RecordLink.Init();
    	RecordLink.Validate("Record ID", ServiceHdr.RecordId);
    	RecordLink.Validate("Link ID", LinkID);	
    	RecordLink.Validate(Type, RecordLink.Type::Note);
    	RecordLink.Validate(Created, CurrentDateTime);
    	RecordLink.Validate(Company, CompanyName);
    	RecordLink.Validate("User ID", UserId);
    	RecordLink.Validate(Description, Rec.Description);
    
    	RecordLink.Note.CreateOutStream(OutStr);
    	OutStr.Write(Rec.ExtTextL);
    	RecordLink.Insert();
    end;

  • MrBensen Profile Picture
    5 on at

    Any update on this? I have the same issue.

  • aitorNAV Profile Picture
    35 on at

    Any updates? I have the same problem, and not able to find the way, should be reallly easy but I'm getting desperate...

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans