Forum Discussion
Zulu_101759
Nimbostratus
Apr 02, 200901070627:3: The string class external file has invalid format
I have an issue that's been eating away my cycles (and brain). I created a data group of type external file and placed a file in /var/class. The name of the file is myfile.txt. In it, there is only one line that has a "rule" for ProxyPass to read and rewrite. The problem is "b load" keeps telling me that the external file has a invalid format. At first, the file had 5K lines when I was getting the error message. I chopped it off to one line and still getting the invalid format error. I made sure that the new line(s) are removed by using "vi :%s/\n//g" but that also didn't help. I also tried " b class seo-rewrite.txt extern {filename /var/class/myfile.txt type string mode rw}" but got the same error message. The only time that I don't get the "invalid format" error is when the file is empty!
Anyone have any idea of what am I doing wrong here?
Output of b load
Loading the configuration ...
BIGpipe: class modification error:
01070627:3: The string class external file (/var/class/myfile.txt) has an invalid format.
Content of myfile.txt
/latin /find.aspx?id=1234
- Zulu_101759
Nimbostratus
Ah! Solved my own problem. Each line needs to be wraped in double quotes. Once I wraped each line in double quotes I don't get Invalid format anymore. I hope this post helps and saves someone with a lot of headache =) old question, but first on google, so let's extend on the above the answer, check this article: https://devcentral.f5.com/articles/irules-data-group-formatting-rules
example:
"str1" := "value 1", "str2" := "value 2",
system seems very picky on indeed " and spaces.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects