Skip to main content
Bumped by Community user
Bumped by Community user
deleted 20 characters in body; edited tags
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. 

Do you have any idea what the problem can be or how I can fix it?

Thanks in advance!

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. Do you have any idea what the problem can be or how I can fix it?

Thanks in advance!

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. 

Do you have any idea what the problem can be or how I can fix it?

deleted 1 character in body
Source Link

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. Do you have any idea what the problem can be or how itI can fix it?

Thanks in advance!

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. Do you have any idea what the problem can be or how it can fix it?

Thanks in advance!

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. Do you have any idea what the problem can be or how I can fix it?

Thanks in advance!

added 1 character in body
Source Link

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. Do you have any idea what the problem can be or how Iit can fix it?

Thanks in advance!

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. Do you have any idea what the problem can be or how I can fix it?

Thanks in advance!

I'm making a script that can be called by the processing.execAlgorithmDialog function. For one of the parameters, I want to use the QgsProcessingParameterFile class for selecting a .csv file.

I tried the following:

class T4_Visualiseer_Networks_Resultaat(QgsProcessingAlgorithm):

    PrmOutputFile = 'Networks result'

    self.addParameter(
        QgsProcessingParameterFile(
            name=self.PrmOutputFile,
            description="Networks resultaat",
            extension="csv(*.csv)"
        )
    )

    def processAlgorithm(self, parameters, context, feedback):
        # Some code to do after clicking ok

When I select a .csv file in a folder and press OK to begin the script, I get the message Wrong or missing parameter value: Networks resultaat (see picture below).

enter image description here

I already tried the following:

  • Replace / by \
  • Add behavior=0 to make sure a file is selected (this was already the case because the default value for behavior is 0)
  • Rename the .csv file

None of the above actions fixed the problem of getting this message and I can't find any other solutions on the internet. Do you have any idea what the problem can be or how it can fix it?

Thanks in advance!

Source Link
Loading