Skip to content

customizing errors results in two error rows #3

@tmcgrath

Description

@tmcgrath

I'm trying to customize the error results:

   def afterBindRow(obj, row, index, columns, params, importLogId) {

        if (row[POPID]) {
                def clientSplitPopulation = Population.findByName(row[POPID])
                if (clientSplitPopulation) {
                    obj.population = clientSplitPopulation
                }
                else {
                    importsLogger.logErrorRow(importLogId, row, index, 'something bad happened')
                }
        }
    }

But this results in two error rows for the same error.

What am I doing wrong?

Thanks,
Todd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions