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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to set fixed widths file format

(0) ShareShare
ReportReport
Posted on by 230
Hi Team.
 
Using below link i have generated the .txt file.
 
Currently i am getting data like below.
////
 
Expected Data;-
Each column have fixed width and data should come based on fixed width.
Like below
////
 
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at
    I see it's a continuation of your other questions about TextStreamIo.
     
    Simply add extra spaces to values before writing them to TextStreamIo. For example:
    strLFix('sdfsdf,', 13)
  • Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at
    Note that F&O comes with a data management framework, which supports export to both delimited and fixed-width text files.
     
    I also successfully used FixedWidthParserWriter when dealing with fixed-width text files in Azure Functions.
  • CU21091228-0 Profile Picture
    230 on at
    for sting value will use 
    strLFix
    Please let me know for integer value and real value what should i use?
  • Suggested answer
    Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at
    There is nothing like a number with spaces. It must be a string.
     
    You already know how to deal with strings, therefore the solution is obvious: convert numbers to strings and use strLFix() (or strRFix()).
  • Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at
    Has your question been answered? If so, please verify the answer. If not, please tell us what else you need for us before it can be considered answered.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans